package PVZ;

import javax.swing.*;
import java.time.Year;

public class SnowPeashooterBullet extends Senobject implements plantheight{
    protected int speed;
    private int planth;
    SnowPeashooterBullet(int x,int y,int planth){
        super(26,26,x,y,1);
        this.planth=planth;
        speed=1;
    }

    public ImageIcon getImage(){
        return Images.SnowPeashooterBullet;
    }

    public void step(){
        x+=speed;
    }

    @Override
    public void loseLife() {
        life--;
    }

    public int getPlanth() {
        return planth;
    }
}
